package com.atguigu06.polymorphism.exer1;

/**
 * ClassName: PersonTest
 * Description:
 *
 * @Author liu
 * @Create 2024/10/30 21:29
 * @Version 1.0
 */
public class Circle extends GeometricObject {
    private double radius;

    public Circle() {
    }

    public Circle(String color,double weight,double radius) {
        super(color,weight);
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public double findArea() {
        return 3.14*radius*radius;
    }
}
